<template>
    <view>
        <view class="Wrapper" @click="takeNum">
            <image :src="Img" mode="aspectFill" class="logo"></image>
            <view class="Box">
                <text class="name ellipsis">店铺名称店铺名称店铺名称店铺名称</text>
                <view class="Data">
                    <text class="mark">评分：5.0</text>
                    <text class="sales_volume">销量：999</text>
                </view>
                <view class="address">
                    <text class="flex-1 color_33 size26 ellipsis">重庆市渝中区两路口港天大厦A座605慕格科技有限公司</text>
                    <view class="Postion">
                        <text class="iconfont icon-B color_99 size30"></text>
                        <text class="color_99 size26 p-left4">3.33KM</text>
                    </view>
                </view>
                <view class="queuing">
                    <view class="queuing_num">排队中：19</view>
                </view>
            </view>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                Img: 'https://imgcdn.mogoie.com/6099/1693813515733.jpg'
            };
        },
        methods: {
            takeNum() {
                this.toUrl('/queueup/takeNumber');
            }
        }
    };
</script>

<style lang="scss" scoped>
    .Wrapper {
        width: 100%;
        padding: 20rpx;
        background-color: #ffffff;
        border-radius: 10rpx;
        margin-top: 20rpx;
        display: flex;
        box-sizing: border-box;

        .logo {
            width: 130rpx;
            height: 130rpx;
            border-radius: 10rpx;
            margin-right: 24rpx;
        }

        .Box {
            flex: 1;
            display: flex;
            flex-direction: column;

            .name {
                color: #000;
                font-size: 30rpx;
            }

            .Data {
                display: flex;
                align-items: center;
                margin-top: 10rpx;

                .mark {
                    color: var(--color);
                    font-size: 26rpx;
                    margin-right: 30rpx;
                }

                .sales_volume {
                    color: #999;
                    font-size: 26rpx;
                }
            }

            .address {
                width: 100%;
                margin-top: 10rpx;
                display: flex;
                justify-content: space-between;

                .Postion {
                    display: flex;
                    align-items: center;
                    padding-left: 20rpx;
                }
            }

            .queuing {
                width: 100%;
                padding-top: 20rpx;
                margin-top: 20rpx;
                border-top: 1rpx solid $borColor;
                display: flex;
                align-items: flex-start;

                .queuing_num {
                    padding: 6rpx 16rpx;
                    background-color: var(--color);
                    color: #fff;
                    font-size: 26rpx;
                }
            }
        }
    }
</style>
